package indzcraft.ranking;

import indzcraft.loader.ItemEquiped;

public class ItemEP implements Comparable<ItemEP> {
	
	private ItemEquiped item;
	private double ep;
	
	public ItemEP(ItemEquiped item,double ep){
		this.item = item;
		this.ep = ep;
	}

	public int compareTo(ItemEP o) {
		if(this.ep > o.ep)
			return -1;
		else if(this.ep < o.ep)
			return 1;
		return 0;
	}

	public ItemEquiped getItem() {
		return item;
	}
	public double getEP() {
		return ep;
	}
}
